home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_0799 / 667 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.6 KB

  1. From: bousch@suntopo.matups.fr (Thierry Bousch)
  2. Subject: two bugs fixed in ramfs 1.4
  3. Date: Sun, 28 Nov 1993 19:44:39 +0100 (MET)
  4.  
  5. Hello all,
  6.  
  7. some people in Mausnet have noticed a bug in RAMFS 1.4 that prevented it
  8. from working with GEMINI (because of a bad return code in
  9. ram_readlabel).
  10.  
  11. Another bug, more annoying for those using decent shells :-) like tcsh,
  12. is that RAMFS did not update the date/time fields of a directory when
  13. you removed an item from it.
  14.  
  15. You should apply the following patch to ramfs.c to upgrade it from
  16. version 1.4 to version 1.5.  It fixes these two bugs. 
  17.  
  18. Thierry.
  19.  
  20.  
  21. --- /ram/ramfs.c    Mon Aug 16 13:39:42 1993
  22. +++ ramfs.c    Fri Nov 19 19:44:34 1993
  23. @@ -17,13 +17,15 @@
  24.   *      get rid of drive R. Added FS_LONGPATH support.
  25.   *      The size of the RAMFILE structure is now considered in the getxattr
  26.   *      and dfree functions.
  27. + * 1.5  Fixed the return-code in ram_readlabel. Also, update the mtime of
  28. + *      a directory when one of its files is deleted.
  29.   */
  30.  
  31.  #include <string.h>
  32.  #include "atarierr.h"
  33.  #include "filesys.h"
  34.  
  35. -#define VERSION  "1.4"
  36. +#define VERSION  "1.5"
  37.  
  38.  /*
  39.   * You may edit the following constants:
  40. @@ -418,6 +420,9 @@
  41.          s->next = trash;
  42.          trash = s;
  43.          _unlink(s);
  44. +        
  45. +        d->time = Timestamp();
  46. +        d->date = Datestamp();
  47.  }
  48.  
  49.  /* Is a filename valid ? */
  50. @@ -706,7 +711,7 @@
  51.  long ram_readlabel (fcookie *dir, char *name, int namelen)
  52.  {
  53.          DEBUG(("ram_readlabel: not implemented"));
  54. -        return EINVFN;
  55. +        return EFILNF;
  56.  }
  57.  
  58.  long ram_hardlink (fcookie *fromdir, char *fromname,
  59.  
  60.